<template>
  <view class="content">
    <view>
      <text class="title">{{ title }}</text>
    </view>
  </view>
</template>

<script>
import { doTest, upload } from "@api/test";
export default {
  data() {
    return {
      title: "这是首页",
    };
  },
  created() {
    console.log(this.$message.success("来了额"));
  },
  onLoad() {
    console.log(
      doTest()
        .then((res) => {
          console.log(res);
        })
        .catch((err) => {
          console.log(err);
        })
    );
    // this.$message.warning("你是沙雕");
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin: 200rpx auto 50rpx auto;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>